home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / local / bin / tails-update-frontend-wrapper < prev    next >
Encoding:
Text File  |  2013-01-06  |  419 b   |  18 lines

  1. #!/bin/sh
  2.  
  3. TORDATE_DIR=/var/run/tordate
  4. TORDATE_DONE_FILE="${TORDATE_DIR}/done"
  5. INOTIFY_TIMEOUT=60
  6.  
  7. # wait for the $TORDATE_DIR directory to appear
  8. while [ ! -d "$TORDATE_DIR" ]; do
  9.       sleep 10
  10. done
  11.  
  12. # wait for a guarantee that time is in Tor valid range
  13. while ! [ -e "$TORDATE_DONE_FILE" ]; do
  14.    inotifywait -q -t "$INOTIFY_TIMEOUT" -e create --format %w%f "$TORDATE_DIR"
  15. done
  16.  
  17. exec /usr/bin/tails-update-frontend
  18.